﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manage/Main.Master" AutoEventWireup="true"
    CodeBehind="RoleManage.aspx.cs" Inherits="AUV5.Web.Manage.RoleManage" %>

<%@ Import Namespace="AUV5.Model" %>
<%@ Import Namespace="AUV5.BLL" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h3>
        添加</h3>
    <fieldset>
        <p>
            角色名称：<asp:TextBox ID="txtRoleName" runat="server" />
        </p>
        <p>
            <asp:Button ID="btnAddRole" Text="添加角色" runat="server" OnClick="btnAddRole_Click" />
            <asp:Label ID="lbMessage" Text="" class="error" runat="server" />
        </p>
    </fieldset>
    <h3>
        列表
    </h3>
    <table cellpadding="0" cellspacing="0">
        <tr>
            <td>
                角色名称
            </td>
            <td>
                添加时间
            </td>
            <td align="center">
                管理
            </td>
        </tr>
        <asp:Repeater ID="repRole" runat="server">
            <ItemTemplate>
                <tr>
                    <td>
                        <%# (Container.DataItem as RoleInfo).RoleName%>
                    </td>
                    <td>
                        <%# (Container.DataItem as RoleInfo).CreateDate.ToString("yyyy/MM/dd HH:mm")%>
                    </td>
                    <td class="action">
                        <a href="#" class="view">View</a><a href="#" class="edit">Edit</a><a href="#" class="delete">Delete</a>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
    </table>
</asp:Content>
